import { S } from '../../s';
import { IPSAppViewEngineParam } from './ipsapp-view-engine-param';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSAppViewEngineParamImpl
  extends PSModelObjectImpl
  implements IPSAppViewEngineParam
{
  get appViewLogicName(): string {
    return this.M.appViewLogicName;
  }

  get ctrlName(): string {
    return this.M.ctrlName;
  }

  get name(): string {
    return this.M.name;
  }

  get paramType(): string {
    return this.M.paramType;
  }

  get value(): IModel {
    return this.M.value;
  }
  get cls(): string {
    return 'PSAppViewEngineParamImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._1c || cls == S._1d) return true;
    return super.instanceof(cls);
  }
}
